<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			#cotainer{
				width: 100%;
				display: flex;
				justify-content: center;/* 水平居中 */
				align-items: center;/* 纵轴方向上的居中 */
				margin-top: 200px;/* 与页面顶部的距离 */
			}
			#outDiv{
				width: 600px;
				height: 100px;
				overflow: hidden; /* 溢出隐藏  当div设置了宽高，div里的内容如果超出了宽高就会被隐藏 */
			}
			#imgId{
				width: 1700px;
				height: 100px;
				display: flex;
				align-items: center;/* 纵轴方向上的居中 */
				justify-content: center;
			}
			#imgId img{
				width: 100px;
				height: 100px;
			}
		</style>
	</head>
	<body>
		<div id="cotainer">
			<div id="outDiv">
				<div id="imgId">
					<img src="../../img/1.jpg" >
					<img src="../../img/2.jpg" >
					<img src="../../img/3.jpg" >
					<img src="../../img/4.jpg" >
					<img src="../../img/5.jpg" >
					<img src="../../img/6.jpg" >
					<img src="../../img/7.jpg" >
					<img src="../../img/8.jpg" >
					<img src="../../img/9.jpg" >
					<img src="../../img/10.jpg" >
					<img src="../../img/11.jpg" >
					<img src="../../img/1.jpg" >
					<img src="../../img/2.jpg" >
					<img src="../../img/3.jpg" >
					<img src="../../img/4.jpg" >
					<img src="../../img/5.jpg" >
					<img src="../../img/6.jpg" >
				</div>
			</div>
		</div>
		
	</body>
	<script type="text/javascript">
		var imgIdObj = document.getElementById('imgId');
		var marginLeft=0;
		onload = function(){
			setInterval(function(){
				if (marginLeft==-1100) {
					marginLeft=0
				}
				marginLeft--;
				imgIdObj.style.marginLeft=marginLeft+'px';
			},10)
			
		}
		
	</script>
</html>
